Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ROS2 automatic reconnect #17

Merged
merged 7 commits into from
Aug 1, 2022
Merged

ROS2 automatic reconnect #17

merged 7 commits into from
Aug 1, 2022

Conversation

robbiefish
Copy link
Contributor

  • Automatically reconnects to the NTRIP caster if:
    • RTCM is not received for a configurable amount of time
    • If NMEA fails to be sent to the server
    • If the socket appears to be closed
  • Allows the number of reconnect attempts and interval between reconnects to be configured by the launch file

@robbiefish robbiefish requested a review from msclissa July 21, 2022 16:00
@robbiefish
Copy link
Contributor Author

@ros-pull-request-builder please retest this please

@robbiefish robbiefish merged commit faee1c4 into ros2 Aug 1, 2022
self._logdebug('Exception: {}'.format(e))

def reconnect(self):
if self._connected:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this be if not self._connected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants